package com.jrauto.CarAppBackend.entity.vo;

/**
 * @author : huiMing
 * Date : 2025年09月18日 16:42
 * @version V1.0
 */

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

/**
 * 文本内容安全识别结果 DTO
 */
public class SecurityCheckResult {

    private Integer errcode;
    private String errmsg;
    private Result result;
    private List<Detail> detail;
    @JsonProperty("trace_id")
    private String traceId;

    // Getters and setters
    public Integer getErrcode() {
        return errcode;
    }

    public void setErrcode(Integer errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public Result getResult() {
        return result;
    }

    public void setResult(Result result) {
        this.result = result;
    }

    public List<Detail> getDetail() {
        return detail;
    }

    public void setDetail(List<Detail> detail) {
        this.detail = detail;
    }

    public String getTraceId() {
        return traceId;
    }

    public void setTraceId(String traceId) {
        this.traceId = traceId;
    }

    public static class Result {
        private String suggest;
        private Integer label;

        // Getters and setters
        public String getSuggest() {
            return suggest;
        }

        public void setSuggest(String suggest) {
            this.suggest = suggest;
        }

        public Integer getLabel() {
            return label;
        }

        public void setLabel(Integer label) {
            this.label = label;
        }
    }

    public static class Detail {
        private String strategy;
        private Integer errcode;
        private String suggest;
        private Integer label;
        private String keyword;
        private Integer prob;

        // Getters and setters
        public String getStrategy() {
            return strategy;
        }

        public void setStrategy(String strategy) {
            this.strategy = strategy;
        }

        public Integer getErrcode() {
            return errcode;
        }

        public void setErrcode(Integer errcode) {
            this.errcode = errcode;
        }

        public String getSuggest() {
            return suggest;
        }

        public void setSuggest(String suggest) {
            this.suggest = suggest;
        }

        public Integer getLabel() {
            return label;
        }

        public void setLabel(Integer label) {
            this.label = label;
        }

        public String getKeyword() {
            return keyword;
        }

        public void setKeyword(String keyword) {
            this.keyword = keyword;
        }

        public Integer getProb() {
            return prob;
        }

        public void setProb(Integer prob) {
            this.prob = prob;
        }
    }
}
